<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>注册结果</title>
    <script src="${pageContext.request.contextPath}/jq/jquery-3.3.1.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bcss/bootstrap.css">
    <style>
        body {
            background-image: url("<%=request.getContextPath()%>/img/register.jpg");
            background-position: center 0;
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-size: cover;
            -webkit-background-size: cover;
            -o-background-size: cover;
            -moz-background-size: cover;
            -ms-background-size: cover;
            color: blue;
            font-weight: bolder;
        }
        .container{
            height: 100%;
        }
        #text{
            position: relative;
            font-size: 30px;
            border: 10px white solid;
            padding: 50px 100px;
            top: 30%;
        }
        #bt{
            position: relative;
            top: 35%;
        }
    </style>
</head>
<body>
   <div class="container">
       <div id="text">
       <h1 class="text-center">
           <c:if test="${data.message.equals('注册成功')}">
             <a href="${pageContext.request.contextPath}/login">${data.message},点我去登录</a>
           </c:if>
           <c:if test="${!data.message.equals('注册成功')}">
               <a href="${pageContext.request.contextPath}/register">${data.message},点我重新去注册</a>
           </c:if>
       </h1>
       </div>
       <div class="border-danger text-center" id="bt">
           <input type="button" value="返回登录页" class="btn btn-success" onclick="return location='${pageContext.request.contextPath}/login'">
           <input type="button" value="返回注册页" class="btn btn-warning" onclick="return location='${pageContext.request.contextPath}/register'">
       </div>
   </div>


</body>
</html>
